package com.azusa.ktc_search.dao;


import com.azusa.ktc_search.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @Description 文章 数据访问接口
 * @date 2020-10-12 18:16:12
*/
public interface ArticleSearchDao extends ElasticsearchRepository<Article,String>{
    Page<Article> findByTitleLikeOrContentLike(String title, String content, Pageable pageable);
}

